export interface IAddProjectRequestData {
  name: string
  year: string
  adminId?: number | undefined
  departmentId: number | undefined
  adminName?: string
  departmentName?: string
  note: string
  contactName: string
  contactPhone: string
  startDate: string
  endDate: string
  establishType: "独立办学" | "合作办学"
  establishAddress: string
  charge: string
  tuitionFee: string
  trainingNum: string
  cooperation: string
  classHours: string
  content: string
}

export interface IUpdateRequestData extends IAddProjectRequestData {
  id: string
}

export interface IUpdateResponseData extends IAddProjectRequestData {
  id: number
  isDel: number
}
export interface IGetProjectRequestData {
  page: number
  size: number
  /**
   * 项目名称
   */
  name?: string
  year?: string
  /**
   * 负责人id
   */
  adminName?: string | undefined
  /**
   * 办学单位id
   */
  departmentId?: number | undefined
}
export interface IGetProjectIdAndNameResponseData {
  name: string
  id: number
  note: string
}

export interface IExportStatisticsExcelRequestData {
  departmentId: number | undefined
  year: string
  startDate: string
  endDate: string
}

export type IGetProjectResponseData = IUpdateResponseData
export type AddResponseData = IApiResponseData<{ project: IAddProjectRequestData }>
export type DeleteResponseData = IApiResponseData<null>
export type UpdateResponseData = IApiResponseData<{ data: IUpdateResponseData }>
export type GetProjectResponseData = IApiResponseData<{ total: number; list: IGetProjectResponseData[] }>
export type GetProjectIdAndNameResponseData = IApiResponseData<{
  total: number
  list: IGetProjectIdAndNameResponseData[]
}>
